package com.office.personalFolders.myFolder.service;

import com.office.personalFolders.myFolder.pojo.OaFile;
import com.office.personalFolders.myFolder.pojo.OaFolder;
import com.office.util.PageModel;

import javax.servlet.http.HttpSession;
import java.util.List;

public interface IsFolderService {

    //根据条件查询所有文件夹
    public List<OaFolder> getAllFoldersByFolder(OaFolder oaFolder);

    //分页进行根据条件查询的文件夹
    public PageModel<OaFolder> getOaFolderListByFY(OaFolder oaFolder, PageModel<OaFolder> pageModel);

    //查询指定文件夹下的文件
    public List<OaFile> getOaFile(OaFile oaFile);

    //查询当前用户下当前文件的所有文件夹和文件
    public List<Object> getOaFile(OaFolder oaFolder, OaFile oaFile, HttpSession session);

    //增加一个文件夹
    public Integer addFolder(OaFolder oaFolder);

    //修改文件夹（名字、删除状态、共享状态）
    public Integer updateFolder(OaFolder oaFolder);

}
